package net.aiform.account.pojo;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import net.aiform.pojo.Identity;

@Entity
@Table(name = "af_contact")
public class Contact extends Identity implements Serializable {
	private static final long serialVersionUID = -1677782704087250030L;
	@ManyToOne(cascade = CascadeType.REFRESH, optional = false)
	@JoinColumn(name = "person", referencedColumnName = "id")
	private Person person;
	private String type;
	private String company;
	private String branch;
	private String department;
	private String position;
	private String email;
	private String telephone;
	private String fax;
	private String im;
	private String country;
	private String province;
	private String city;
	private String district;
	private String street;
	private String doorplate;
	private String address;

	public String getAddress() {
		return address;
	}

	public String getBranch() {
		return branch;
	}

	public String getCity() {
		return city;
	}

	public String getCompany() {
		return company;
	}

	public String getCountry() {
		return country;
	}

	public String getDepartment() {
		return department;
	}

	public String getDistrict() {
		return district;
	}

	public String getDoorplate() {
		return doorplate;
	}

	public String getEmail() {
		return email;
	}

	public String getFax() {
		return fax;
	}

	public String getIm() {
		return im;
	}

	public Person getPerson() {
		return person;
	}

	public String getPosition() {
		return position;
	}

	public String getProvince() {
		return province;
	}

	public String getStreet() {
		return street;
	}

	public String getTelephone() {
		return telephone;
	}

	public String getType() {
		return type;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setBranch(String branch) {
		this.branch = branch;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public void setDoorplate(String doorplate) {
		this.doorplate = doorplate;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public void setIm(String im) {
		this.im = im;
	}

	public void setPerson(Person person) {
		this.person = person;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public void setType(String type) {
		this.type = type;
	}

}
